import http from "@/utils/http2.js";

/**
 * 查询所有产品
 * @param {*} type
 * @returns
 */
export function queryCategory(data) {
  return http.post("/v1/product/category");
}

export function saveProduct(data) {
  return http.post("/v1/product/category");
}

export function updateProduct(data) {
  return http.put("/v1/product/category", data);
}

export function deleteProduct(id) {
  return http.delete("/v1/product/category", id);
}
